package com.example.lib_common.mvi

import com.google.gson.Gson
import okhttp3.MediaType
import okhttp3.RequestBody

open class BaseRepository {
    fun createBody(map : HashMap<String,Any>): RequestBody {
        val str = Gson().toJson(map)
        return RequestBody.create(
            MediaType.parse(
            "application/json;charset=UTF-8"),str)
    }
}